package com.tyhy.program.cbc.mobileapi.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 *
 */
@Data
public class UserInfoDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	//ID
	private Integer userId;
	//用户类型u=消费者s=门店m=商户o=加油站
	private String userType;
	//根据user_type保存门店ID,商户ID,加油站ID
	private String userDept;
	//
	private String userName;
	//用户手机号
	private String userPhone;
	//用户密码
	private String userPass;
	//OPENID
	private String openId;
	//冻结0,正常1
	private Integer userFlag;
	//创建人
	private String createBy;
	//创建时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//修改人
	private String updateBy;
	//修改时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	//备注
	private String remark;
	//乐观锁
	private Integer version;
	//最近登录时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastLoginTime;
	//最近登录ip
	private String lastLoginIp;
	//人员头像地址
	private String headImgUrl;
	//车牌
	private String userPlate;
	//用户油卡号
	private String userOilnum;
	//用户身份证号
	private String userCommunitynum;
	//部门名称
	private String deptName;
	//经营类目
	private String category;
	private Integer platId;
	/**所属加油站ID*/
	private Integer shopId;
	/**所属加油站名称*/
	private String shopName;

	private String platName;
	//用户角色
	private String userSign;
	private String roleName;
	/**
	 * 业务主键,当userfrom等于1时businessid代表openId,否则代表userId
	 */
	private String businessid;
	/**
	 * 用户来源 0代表来自APP,1代表来自微信
	 */
	private String userfrom;
	/**
	 * 用户卡包编号来源 0代表来自APP,1代表来自微信
	 */
	private String cardNum;
	/**
	 * 加油站编号
	 */
	private String stationNum;
}
